package org.vectrics.mail.struts;

import org.vectrics.common.view.HtmlForm;
import org.vectrics.struts.VectricsTagSupport;

public class TemplateCategoryEditTag extends VectricsTagSupport {

	private static final long serialVersionUID = -4131184521780911754L;

	@Override
	protected String makeStartTag() {
		HtmlForm form = new HtmlForm(this.getRequest(), "emailTemplateCategoryForm", this.getPhrase("phrase.email.template.category.information"));
		form.setAction(this.getContextPath() + "/admin/mailmgr/category_save.do");
		form.addHidden("id");
		form.addEditForParam(this.getPhrase("prompt.template.mail.category"), "code", true);
		form.addEditForParam(this.getPhrase("prompt.template.mail.description"), "description", true);
		form.addSubmitAndCancelButton();
		return(form.toString());
	}

}
